package com.lms.service.lab;

import com.lms.bean.LabData;
import com.lms.bean.LabWeek;
import com.lms.pojo.LabIntervalData;
import com.lms.pojo.LabWeekData;

import java.util.List;

public interface LabService {
    List<LabData> getLabList();
    /*将获取到的UserApply转换为UserApplyData;apply-details：通过labName获取labData*/
    LabData getLabDataByLabCode(String labCode);
    List<LabWeekData> getLabWeekDataByLabName(String labCode, String week);
    /*获取实验室总量与余量（返回应该int数组，总量为前一个，余量为后一个）*/
    int[] getLabTotalAndCapacity(String labCode,String week,String interval);
    int getApplyCount(String labCode,String week,String interval);
    /*获取LabIntervalDataList对象*/
    List<LabIntervalData> getLabIntervalData(String week,String interval);
    /*labAdm: 通过labName获取labCode*/
    String getLabCodeByLabName(String labName);
    /*apply-details：通过labName获取labData*/
    LabData getLabDataByLabName(String labName);
    /*修改实验室信息*/
    int labModify(String labName,String labTotal,String labTag,String labIntroduce);
}
